home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / xml4j.jar / com / ibm / xml / dom / ProcessingInstructionImpl.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-08-30  |  1.2 KB  |  49 lines

  1. package com.ibm.xml.dom;
  2.  
  3. import org.w3c.dom.Node;
  4. import org.w3c.dom.ProcessingInstruction;
  5.  
  6. public class ProcessingInstructionImpl extends NodeImpl implements ProcessingInstruction {
  7.    static final long serialVersionUID = 7554435174099981510L;
  8.  
  9.    public ProcessingInstructionImpl(DocumentImpl var1, String var2, String var3) {
  10.       super(var1, var2, var3);
  11.    }
  12.  
  13.    public short getNodeType() {
  14.       return 7;
  15.    }
  16.  
  17.    public Node cloneNode(boolean var1) {
  18.       return super.ownerDocument.createProcessingInstruction(super.name, super.value);
  19.    }
  20.  
  21.    public String getTarget() {
  22.       if (super.syncData) {
  23.          ((NodeImpl)this).synchronizeData();
  24.       }
  25.  
  26.       return super.name;
  27.    }
  28.  
  29.    public String getData() {
  30.       if (super.syncData) {
  31.          ((NodeImpl)this).synchronizeData();
  32.       }
  33.  
  34.       return super.value;
  35.    }
  36.  
  37.    public void setData(String var1) {
  38.       if (super.readOnly) {
  39.          throw new DOMExceptionImpl((short)7, (String)null);
  40.       } else {
  41.          if (super.syncData) {
  42.             ((NodeImpl)this).synchronizeData();
  43.          }
  44.  
  45.          super.value = var1;
  46.       }
  47.    }
  48. }
  49.